<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@page import="java.util.Date"%>
<%@ include file="../../admin.inc.jsp"%>
<script>
	function callback(success, msg) {
		if (success) {
			alertMsg.info(msg);
			$.pdialog.closeCurrent();
			// 刷新列表
			var tabId = getCurrentNavtab().attr("tabid");
			if (tabId != null) {
				navTab.reload("", {
					navTabId : ""
				});
			}
		}else{
			alertMsg.warn(msg);
		}
	}

</script>
<div class="pageHeader">
	<form method="post" id="pagerForm" action="${webContextPath}/admin/dressupScalePic/list" onsubmit="return navTabSearch(this)">
	<input type="hidden" name="pageNum" id="pageNum" value="${pageInfo.pageNum}" />
	<input type="hidden" name="numPerPage" id="numPerPage" value="${pageInfo.numPerPage}"/>
	<input type="hidden" name="dressupId" id="dressupId" value="${dressupId}"/>
	<div class="searchBar">
		
	</div>
	</form>
</div>
<div class="pageContent j-resizeGrid">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${webContextPath}/admin/dressupScalePic/toAdd?dressupId=${dressupId}" target="dialog" mask="true"
               width="450" height="450" title="添加">
               <span>添加</span>
            </a></li>
        </ul>
	</div>
	<div class="grid" layouth="65" style="width: 1149px; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="40">ID</th>
				<th width="70">服装搭配ID</th>
				<th width="70">作品图</th>
				<th width="60">操作</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list}" varStatus="status">
				<tr target="ScalePicId" rel="${item.id}" style="">
					<td>${item.id}</td>
					<td>${item.dressupId}</td>
					<td>${item.image}</td>
					<td>
					<a title="编辑" target="dialog" href="${webContextPath}/admin/dressupScalePic/toEdit?id=${item.id}"
						 mask="true" class="btnEdit" width="430" height="500">编辑</a>
					<a title="删除" target="ajaxTodo" href="${webContextPath}/admin/dressupScalePic/deleteSingle?id=${item.id}" class="btnDel">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="panelBar" style="bottom:0px">
		<div class="pages">			
			<span>共${size}条</span>
		</div>
		<div class="pagination" targettype="navTab" totalcount="${size}" 
		numperpage="${pageInfo.numPerPage}" pagenumshown="10" currentpage="${pageInfo.pageNum}">
		</div>
	</div>
</div>